package lab02.test17;

public class Test17 {
    public static void main(String[] args) {
        int[] arr = {45,56,32,10,23,45,25,63,30,41};

        ArrayMaximum max = new ArrayMaximum(); //建立对象获取最大值及最大值的位置
        max.getExtrtmum(arr);

        ArrayMinimum min = new ArrayMinimum(); //获取最小值及最小值的位置
        min.getExtrtmum(arr);

        ArraySum sum = new ArraySum();
        System.out.println("数组总和:" + sum.getArraySum(arr));
    }
}
